//
//  House.swift
//  WuYeUser
//
//  Created by swordjoy on 2017/6/1.
//  Copyright © 2017年 com.WuyeUser.remotevillage. All rights reserved.
//

import Foundation
import SwiftyJSON

struct House: ModelProtocol {
  let id: String
  let number: String
  
  init(json: JSON) {
    self.id = json["id"].stringValue
    self.number = json["number"].stringValue
  }
  
  static func array(from jsonArray: [JSON]) -> [House] {
    return jsonArray.map({ return House(json: $0) })
  }
}
